package com.ykzb.enums;

/**
 *  项目开发严格按照前后端约定好的错误码范围进行不同的文案提示.
 */
public enum MsgEnumType implements IMsgEnumType {
    
    /******************* 2000-8999 业务控制返回错误. 弹服务器文案*****************************************************/

    //#######################    玩家相关的错误码      2000~2199  ###############################################//

    INVALID_REGISTER_CODE(2001, "验证码错误"),

    REPEAT_REGISTER_MOBILE(2002, "手机号已被注册，请返回上一层直接登录或找回密码"),

    PWD_EMPTY(2003, "请输入密码"),

    USER_NOT_EXISTS(2004, "账号或密码错误"),

    ERROR_PWD(2005, "账号或密码错误"),

    MOBILE_NO_REGISTER(2006, "该手机号未注册"),

    INVALID_RESET_CODE(2007, "验证码错误"),

    REGISTER_SMS_ERROR(2008, "发送注册验证码失败"),

    RESET_SMS_ERROR(2009, "发送重置密码验证码失败"),

    UPDATE_HEADIMG_ERROR(2010, "保存头像失败"),

    OLD_PWD_ERROR(2011, "原密码错误"),

    RESET_PWD_ERROR(2012, "修改密码失败"),

    REPEAT_NICKNAME(2013, "昵称已被注册"),

    UPDATE_NICKNAME_ERROR(2014, "修改昵称失败"),
    UPDATE_SEX_ERROR(2015, "修改性别失败"),

    NEWS_NOT_EXISTS(2016,"资讯不存在"),
    NEWS_HAS_STORE(2017,"您已经收藏过该资讯啦"),
    NEWS_HAS_PRAISE(2018,"您已经点赞过该资讯啦"),
    QUESTIONS_NOT_EXISTS(2019,"问答不存在"),
    NOT_AGAIN_FOCUS_QUESTIONS(2020,"您已关注该问答。"),
    NOT_FOCUS_QUESTIONS(2020,"您未关注该问答。"),
    NOT_STORES_NEWS(2021,"您未收藏该资讯。"),
    ANSWER_NOT_EXISTS(2022,"答案不存在"),
    ANSWER_HAS_PRAISE(2023,"您已经点赞过该答案啦"),
    OPEN_LOGIN_DECRYPT_ERROR(2024, "第三方登录失败"),
    WX_LOGIN_WXCODE_ERROR(2025, "微信登录授权失败"),

    WX_LOGIN_USERINFO_ERROR(2026, "微信登录授权失败"),
    QQ_LOGIN_USERINFO_ERROR(2027, "QQ登录授权失败"),
    
    TITLE_LENGTH_ERROR(2028, "标题必须为30字以内"),
    DESCIBE_LENGTH_ERROR(2029, "描述必须为200字以内"),
    
    REFUND_FAIL(2030, "退款失败"),
    
    PROJECT_NOT_EXISTS(2030, "项目不存在"),
    
    
    
    
    RECHARGE_SIGN_ERROR(2200, "支付失败,请联系工作人员"),

    RECHARGE_CHECK_ERROR(2201, "支付状态查询失败"),

    WX_UNIFIEDORDER_ERROR(2202, "微信支付失败，请重试"),

    WX_MD5_SIGN_ERROR(2203, "微信支付失败，请重试"),

    ALIPAY_RECHARGE_ERROR(2204, "充值失败"),

    WXAPP_RECHARGE_ERROR(2205, "充值失败"),

    RECHARGE_ORDER_NOT_FOUND(2206, "充值订单不存在"),

    RECHARGE_USER_NOT_MATCH(2207, "无权查询该充值订单"),

    RECHARGE_APP_STORE_MD5_ERROR(2208, "校验失败"),

    RECHARGE_APP_STORE_UPDATE_ERROR(2209, "校验失败"),
    
    


    //#######################    玩家相关的错误码      2000~2199  ###############################################//
    

    //#######################    充值相关的错误码      2200~2299  ###############################################//
   

    /******************* 2000-8999 业务控制返回错误. 弹服务器文案*****************************************************/

    ;

    MsgEnumType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private int code;
    private String message;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getProject() {
        // TODO Auto-generated method stub
        return null;
    }

}


